package singleton.hungry;

/**
 * 直接饿汉
 * 构造器私有化；自行创建，静态变量保存；向外提供实例；强调单例，加final
 * 线程安全
 */
public class Singleton1 {
    public static final Singleton1 INSTANCE = new Singleton1();
    private Singleton1(){
        int [] a = new int [5];
        String b = "as";

    }

}
